<?php
/***
//自我游订单确认通知
***/
include('/var/www/html/new/d/module/api/function.class.php');
if (!class_exists("go_sql")){
	include("/var/www/html/new/conf/le.je");
	$le=new go_sql();
	$le->connect();
}
$PFT_infunction = new AllFunction(); 
$PFT_infunction->logfile('5|'.json_encode($_REQUEST),'orderPayNote');

$order_id = $_REQUEST['order_id'];
$ticket_num = $_REQUEST['ticket_num'];

if($order_id){
	$sel = "select * from all_api_order where apiOrder='$order_id' limit 1";
	$GLOBALS['le']->query($sel);
	if($GLOBALS['le']->fetch_assoc()){
		$response = <<<xml
			<root>
				<result>true</result>
				<msg>接收成功</msg>
			</root>
xml;
		echo $response;
		exit;
	}
	else{
		$response = <<<xml
			<root>
				<result>false</result>
				<msg>无此订单</msg>
			</root>
xml;
		echo $response;
		exit;
	}
}
else{
	$response = <<<xml
			<root>
				<result>false</result>
				<msg>请输入有效数据</msg>
			</root>
xml;
	echo $response;
	exit;
}
?>